package com.cashmama.market.api.domain.vo.mq;

import com.cashmama.market.api.domain.enums.MQTagEnum;

import java.io.Serializable;

/**
 * @program: market-api
 * @description
 * @author: frank
 * @create: 2020-03-24 11:46
 **/
public class MessageMQ implements Serializable {
    private static final long serialVersionUID = 2707250139271603142L;

    /**
     * message 业务ID 如【订单号】
     */
    private String messageId;
    /**
     * 消息内容
     */
    private String message;
    /**
     * 消息标签 区分业务类型
     */
    private MQTagEnum tag;

    public MQTagEnum getTag() {
        return tag;
    }

    public MessageMQ setTag(MQTagEnum tag) {
        this.tag = tag;
        return this;
    }

    public String getMessageId() {
        return messageId;
    }

    public MessageMQ setMessageId(String messageId) {
        this.messageId = messageId;
        return this;
    }

    public String getMessage() {
        return message;
    }

    public MessageMQ setMessage(String message) {
        this.message = message;
        return this;
    }
}
